package com.yuebu.bluetoothbandsdk.adapter;
import android.bluetooth.BluetoothDevice;
import android.util.Log;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.yuebu.bluetoothbandsdk.DeviceInfo;
import com.yuebu.bluetoothbandsdk.R;

public class SearchListAdapter extends BaseQuickAdapter<DeviceInfo, BaseViewHolder> {

    public SearchListAdapter() {
        super(R.layout.search_list_item);
    }

    @Override
    protected void convert(BaseViewHolder helper, DeviceInfo item) {
        Log.i(TAG, "convert: ");
        helper.setText(R.id.tv_mac_address, item.getAddress());
        helper.setText(R.id.tv_device_name, item.getName());
//        helper.setText(R.id.tv_status,item.getStatus());
        helper.addOnClickListener(R.id.ll_root);
    }
}
